package Event;

import Event.Operation.Operation;

public class Event implements Comparable<Object>{
	
	private Long _time;
	private Operation _operation;
	
	/** Getter & Setter **/


	public Operation getOperation() {
		return _operation;
	}
	
	public Long getTime() {
		return _time;
	}
	
	public void setOperation(Operation p_operation) {
		_operation = p_operation;
	}
		
	/** Constructor & Method **/
	
	public Event(Operation operation, long p_time) {
		this._operation = operation;
		this._time = p_time;
	}

	@Override
	public int compareTo(Object o) {
		// TODO Module de remplacement de m�thode auto-g�n�r�
		Long unTime = ((Event)o).getTime();		
		return _time.compareTo(unTime);
	}
}